home *** CD-ROM | disk | FTP | other *** search
/ Hunter 2006 / Hunter 2006.iso / soft / sleipnir241.exe / {app} / scripts / ƒy[ƒWˆ— / GoogleƒTƒ€ƒlƒCƒ‹.js < prev   
Text File  |  2006-06-15  |  1KB  |  40 lines

  1. /*==========================================================
  2. Script by jin-ren
  3.   Googleé╠îƒì⌡îïë╩é⌐éτâTâÇâlâCâïé≡ì∞ɼ
  4.   âAâhâîâXègÆúü{é⌐éτé╠ò╧ìXô_
  5.   üEPDFé═âèâôâNé╡é╚éóéµéñé╔é╡é╜
  6.                                                 2002/09/08
  7. ==========================================================*/
  8.  
  9.   var obj, document, id, window;
  10.  
  11.   obj = new ActiveXObject("Sleipnir.API");
  12.   id = obj.GetDocumentID(obj.ActiveIndex);
  13.   document = obj.GetDocumentObject(id);
  14.   window = obj.GetWindowObject(id);
  15.  
  16.   if (document == null)
  17.   {
  18.     obj.MessageBox("Document é≡ì∞ɼé┼é½é▄é╣é±");
  19.   }
  20.   else
  21.   {
  22.   var x=window.prompt("âTâÇâlâCâïé╖éΘÅπî└é≡ÄwÆΦé╡é─ë║é│éó","10");
  23.   var j=0;
  24.   var atag=document.all.tags("A");
  25.   for(i in atag){
  26.     if(atag[i].parentElement==null){continue;}
  27.     if(atag[i].parentElement.tagName!="P"||atag[i].className=="f1"){continue;}
  28.     if(atag[i].href.match(/(http\:\/\/)*\.pdf/)){continue;}
  29.     atag[i].insertAdjacentHTML("BeforeBegin","<iframe src=\""+atag[i].href+"\" style=\"zoom:0.5;\" height=\"600\" width=\"600\"></iframe>");
  30.     j++;
  31.     if(j==x-0){break;}
  32.   }
  33.  
  34.     document = null;
  35.   }
  36.  
  37.   obj.beep();
  38.   window = null;
  39.   obj = null;
  40.